/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.anny.stream.operatin.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.anny.stream.operatin.entity.AnnyOperatin;
import com.jeeplus.modules.anny.stream.operatin.mapper.AnnyOperatinMapper;

/**
 * 积分流水管理Service
 * @author clf
 * @version 2018-10-18
 */
@Service
@Transactional(readOnly = true)
public class AnnyOperatinService extends CrudService<AnnyOperatinMapper, AnnyOperatin> {

	public AnnyOperatin get(String id) {
		return super.get(id);
	}
	
	public List<AnnyOperatin> findList(AnnyOperatin annyOperatin) {
		return super.findList(annyOperatin);
	}
	
	public Page<AnnyOperatin> findPage(Page<AnnyOperatin> page, AnnyOperatin annyOperatin) {
		return super.findPage(page, annyOperatin);
	}

	/**
	 * 获取用户的积分流水分页
	 * @param annyOperatin annyOperatin
	 */
	public Page<AnnyOperatin> getOperatinByUser(AnnyOperatin annyOperatin){
	return 	annyOperatin.getPage().setList(super.mapper.findByUserId(annyOperatin));

	}
	@Transactional(readOnly = false)
	public void save(AnnyOperatin annyOperatin) {
		super.save(annyOperatin);
	}
	
	@Transactional(readOnly = false)
	public void delete(AnnyOperatin annyOperatin) {
		super.delete(annyOperatin);
	}
	
}